#pragma once
#include <cstdint>
#include <vector>

enum class TLVType : uint16_t {
    UINT8  = 0x01,
    UINT16 = 0x02,
    UINT32 = 0x03,
    STRING = 0x10,
    BLOB   = 0x20
};

struct TLV {
    TLVType type;
    uint16_t length;
    std::vector<uint8_t> value;
};